<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Gray发布系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <link rel="stylesheet" href="/static/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/static/css/swiper.min.css">
    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/swiper.jquery.min.js"></script>
    <script charset="utf-8" src="/static/lib/layui/layui.js"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>



</head>
<body>
<!-- 中部开始 -->
<div class="wrapper">
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="opt-content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <form class="layui-form" method="post">
                <div class="layui-form-item">

                    <div class="layui-form-item">
                        <label for="opt_name" class="layui-form-label">
                            <span class="x-red">*</span>机器名
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="opt_name" name="opt_name" lay-verify="required"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="opt_host" class="layui-form-label">
                            <span class="x-red">*</span>机器IP
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="opt_host" name="opt_host" lay-verify="required"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="opt_host" class="layui-form-label">
                            <span class="x-red">*</span>机器账户
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="opt_username" name="opt_username"
                                    lay-verify="required" {% comment %}required="" lay-verify="opt_addr"{% endcomment %}
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">访问类型</label>
                        <div class="layui-input-inline">
                            <select name="pwd_type" id="pwd_type" lay-filter="pwdVisitType">
                                <option value="1">密码</option>
                                <option value="2">秘钥</option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-form-item" id="optPwd">
                        <label for="opt_host" class="layui-form-label">
                            <span class="x-red">*</span>机器密码
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="opt_password" name="opt_password" lay-verify="required"
                                   autocomplete="off" class="layui-input">
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <label for="opt_addr" class="layui-form-label">
                            <span class="x-red">*</span>部署地址
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="opt_addr" name="opt_addr" lay-verify="required"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">机器说明</label>
                        <div class="layui-input-block">
                            <textarea name="opt_desc" id="opt_desc" placeholder="请输入内容"
                                      class="layui-textarea" lay-verify="required"></textarea>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="L_repass" class="layui-form-label">
                        </label>
                        <button class="layui-btn" lay-filter="add" lay-submit="" id="opt_build">
                            增加
                        </button>
                    </div>
                </div>
            </form>
            <!-- 右侧内容框架，更改从这里结束 -->
        </div>
    </div>
    <!-- 右侧主体结束 -->
</div>
<!-- 中部结束 -->

 <script type="text/javascript" src="/static/js/form_custom.js"></script>
</body>
</html>